package cn.hcbycloud.auth.mapper;


import cn.hcbycloud.auth.bo.UserInfoBO;
import cn.hcbycloud.auth.model.UserLogin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户认证信息表
 * @author gaoheng
 * @date 2022-01-19 00:12:02
 */
public interface UserLoginMapper extends BaseMapper<UserLogin> {

    /**
     * 判断用户是否存在
     * @param userName
     * @param tenantId
     * @return
     */
    UserInfoBO selectUserInfoByUserName(@Param("userName") String userName, @Param("tenantId") String tenantId);


    /**
     * 根据用户登录名称查询用户详细信息
     * @param userNameList
     * @param tenantId
     * @return
     */
    List<UserInfoBO> selectUserInfoByUserNameList(@Param("userNameList") List<String> userNameList, @Param("tenantId") String tenantId);

}
